﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CMS.BLL;

public partial class Controls_Setting_ctrFooter : System.Web.UI.UserControl
{
     private int nCurrentLang = Support.GetCurrentLanguage();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.InitData();
        }
    }
    private void InitData()
    {
        Company objCompany = new Company();
        objCompany.LoadById(Config.COMPANY_DEFAULT);
        ltrFooter.Text = objCompany.Data.Copyright;
        switch (Support.GetDefaultLanguage())
        {
            case 1:
                ltrAddress.Text = "Address: " + objCompany.Data.Address1;
                break;
            case 2:
                ltrAddress.Text = "Address: " + objCompany.Data.Address2;
                break;
            case 3:
                ltrAddress.Text = "Address: " + objCompany.Data.Address3;
                break;
        }
    }
}